﻿<navigation:Page x:Class="SilverBox.Demo.DataGrid" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
    xmlns:Controls="clr-namespace:SilverBox.Controls;assembly=SilverBox"
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"
    Title="DataGrid"
    Style="{StaticResource PageStyle}">

    <Grid x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource SampleDataSource}}">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="50" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>

            <TextBlock Grid.Row="0" x:Name="HeaderText" Style="{StaticResource HeaderTextStyle}" 
                                   Text="DataGrid"/>
            <Controls:DataGrid x:Name="dataGrid" Grid.Row="1" ItemsSource="{Binding Collection, Mode=OneWay}">
                <Controls:DataGrid.Columns>

                </Controls:DataGrid.Columns>
            </Controls:DataGrid>

        </Grid>
    </Grid>

</navigation:Page>